package com.iss.apartmentmanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.iss.apartmentmanage.entity.RoomManage;
import com.iss.apartmentmanage.model.BaseModel;

import java.util.List;

public interface RoomService {
    //查询全部房间
    IPage<RoomManage> selectAllRoom(int pageNum, int pageSize, RoomManage roomManage, BaseModel baseModel);

    //查询所有空房间
    List<RoomManage> selectAllEmptyRoom();

    //查询所有已入住的房间
    List<RoomManage> selectAllCheckinRoom();

    //插入新的房间
    Integer insertRoom(RoomManage roomManage);

    //更新房间信息
    Integer updateRoomByRoomId(RoomManage roomManage);
    //批量更新房间信息
    Integer updateIsUsedByRoomIds(String [] arr,int isUser);

    Integer deleteRoomByid(String id);
    //批量删除
    Integer deleteRoomByBatchIds(String[] arr);

    Integer updateRoomPicture(RoomManage roomManage);
//
//    //根据区域查询
//    IPage<RoomManage> selectAllRoomByArea(Integer area);
//    //根据房间号查询
//    IPage<RoomManage> selectAllRoomByRoomName(String roomName);
//    //根据价格区间查询
//    IPage<RoomManage> selectAllRoomByPrice(Double priceFrom,Double priceTo );
}
